#include<iostream>
#include<string>
class Mystring:public std::string//重载的运算符不能继承
{
public:
    Mystring(const char*s):std::string(s){}


};


int main()
{   
    Mystring s("hello");
    std::cout<<s<<std::endl;//向上转型

    return 0;
}